/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package tmp.ac.options;

import java.awt.event.KeyEvent;

/**
 *
 * @author ismail
 */
public class shortcuts {

    private String event;

    private int updatChortCut() {
        int returnData = 0;


        if (event.equals("save")) {
            returnData = KeyEvent.VK_F9;
        } else if (event.equals("edit")) {

            returnData = KeyEvent.VK_F10;
        } else if (event.equals("delete")) {

            returnData = KeyEvent.VK_F11;
        } else if (event.equals("cancel")) {

            returnData = KeyEvent.VK_F12;
        }
        return returnData;

    }

    public int getchortCut(String event) {
        this.event = event;
        return this.updatChortCut();

    }
}
